package com.xxx.server.entity;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)   //自动的给model bean实现equals方法和hashcode方法。
@Accessors(chain = true)        //⽣成setter⽅法返回this（也就是返回的对象），代替了默认的返回void。
@ApiModel(value = "UserLogin对象",description = "")
public class UserLoginParam {
    @ApiModelProperty(value = "用户名",required = true)    //是否为必传参数,false:非必传参数;  true:必传参数
    private String username;
    @ApiModelProperty(value = "密码",required = true)
    private String password;
    @ApiModelProperty(value = "验证码",required = true)    //增加登陆时候的验证码
    private String code;

}
